package com.log;

import com.google.appengine.api.datastore.Key;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class GPSLogEntry {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key primaryKey;
	
	@Persistent
	private String appUser;
	
	@Persistent
	private String deviceName;
	
	@Persistent
	private double latitude;
	
	@Persistent
	private double longitude;
	
	@Persistent
	private Date logEntryDate;
	
	public GPSLogEntry(
			String appUser,
			String deviceName,
			double latitude, 
			double longitude, 
			Date logEntryDate
			){
		this.appUser = appUser;
		this.deviceName = deviceName;
		this.latitude = latitude;
		this.longitude = longitude;
		this.logEntryDate = logEntryDate;
	}

	public String getAppUser() {
		return appUser;
	}


	public void setAppUser(String appUser) {
		this.appUser = appUser;
	}


	public Key getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(Key primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public Date getLogEntryDate() {
		return logEntryDate;
	}

	public void setLogEntryDate(Date logEntryDate) {
		this.logEntryDate = logEntryDate;
	}
	
}
